using System;
using System.Runtime.Serialization;
using System.Collections.Generic;

namespace CoreEx.Samples.DomainModel
{

	/// <summary>
	/// A class that represents Shippers.
	/// </summary>
	[Serializable]
	public class Shipper
	{
		#region Private Members

		private IList<Order> _orders = new List<Order>();

		#endregion

		/// <summary>
		/// Gets or sets the Shipper ID
		/// </summary>
		public virtual int ShipperID { get; set; }

		/// <summary>
		/// Gets or sets the Company Name
		/// </summary>
		public virtual string CompanyName { get; set; }

		/// <summary>
		/// Gets or sets the Phone
		/// </summary>
		public virtual string Phone { get; set; }

		/// <summary>
		/// Gets the Orders
		/// </summary>
		public IList<Order> Orders 
		{
			get { return _orders; }
		}
	}
}
